<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script src="/js/jquery-1.9.1.min.js"></script>
        <script src="/js/prettify.js"></script>
        <style>
            @import "http://fonts.googleapis.com/css?family=Lato:300,400,700";
            body{
                font-family:"Lato",Arial;
        }
        </style>
    </head>
    <body>
        <a href="/">Home</a>
        <h2>Log method test</h2>
        <p>Download the log file.</p>
        <h3>Server code</h3>
        <pre class="prettyprint lang-js">
          app.map('/log_test.txt',function(req,res){
                app.log('This is your message')
                app.log(req.param('message'))
                res.sendFile('/../log/app.log')
          });
        </pre>
        <h3>Sample HTML FORM</h3>
        <form action="/log_test.txt" method="POST" target="_blank">
            <label>Your Log message<input type="text" name="message"  ></label><br>
            <input type="submit" name="submit" value="submit">
        </form>
    </body>
</html>
